<?php
if (extension_loaded('gettext')) {
    function _setlocale($category, $locale)
    {
        $ret = setlocale($category, $locale);
    }
} else if (extension_loaded('mbstring')) {
    require_once dirname(__FILE__)."/gettext.inc";
} else {
    function _setlocale($category, $locale)
    {
        $ret = setlocale($category, $locale);
    }
    
    function gettext($message)
    {
        return $message;
    }
    
    function _($message)
    {
        return $message;
    }
    
    function ngettext($msgid1, $msgid2, $n)
    {
        if ($n == 1) {
            return $msgid1;
        } else {
            return $msgid2;
        }
    }
    
    function bindtextdomain()
    {
    }
    
    function textdomain()
    {
    }
}